/*
*Copyright 2021-2023 NERCIS
*
*Licensed under the Apache License, Version 2.0 (the "License");
*you may not use this file except in compliance with the License.
*You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*Unless required by applicable law or agreed to in writing, software
*distributed under the License is distributed on an "AS IS" BASIS,
*WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*See the License for the specific language governing permissions and
*limitations under the License.
*/

package cn.ac.nercis.pes.community.constant;

/**
 * 缩略图尺才
 * @author zpy
 * @version 1.0.0
 */
public enum ThumbnailSize {
    /**NORMAL**/
    NORMAL(180,180,150,80),
    SMALL(160,160,130,60),
    NORMAL_X2(280,280,250,180),
    NORMAL_X4(560,560,500,360);

    private int bodyWidth;
    private int bodyHeight;
    private int imgWidth;
    private int imgHeight;
    ThumbnailSize(int bodyWidth,int bodyHeight,int imgWidth,int imgHeight){
        this.bodyWidth = bodyWidth;
        this.bodyHeight = bodyHeight;
        this.imgWidth = imgWidth;
        this.imgHeight = imgHeight;
    }

    public int getBodyWidth() {
        return bodyWidth;
    }

    public int getBodyHeight() {
        return bodyHeight;
    }

    public int getImgWidth() {
        return imgWidth;
    }

    public int getImgHeight() {
        return imgHeight;
    }
}